package com.homework.ch08;

import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;

/**
 * @author yang
 * @date 2024-03-28
 */
public class BeanTest02 {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) throws Exception {
        BeanTest02 beanTest02 = new BeanTest02();
        BeanUtil02.setProperty(beanTest02, "name", "张三");
        System.out.println(BeanUtil02.getProperty(beanTest02, "name"));
    }
}
